﻿// -----------------------------------------------------------------------
// <copyright file="OrderForm.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace BigStamp.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    [Serializable]
    public class OrderForm
    {
        public string FormNum { get; set; }
        public string SrcName { get; set; }
        public string SrcAddr { get; set; }
        public string SrcTel { get; set; }
        public string TrackingNum { get; set; }
        public string DestName    { get; set; }
        public string DestAddr { get; set; }
        public string DestCity { get; set; }
        public string DestTel { get; set; }
        public string DestTitle { get; set; }
        public string DestZipCode { get; set; }
        public DateTime CreateDate { get; set; }

        private DateTime printDate;
        public string PrintDate 
        {
            get 
            {
                if (printDate==DateTime.MinValue)
                {
                    return string.Empty;
                }
                else
                {
                    return printDate.ToShortDateString();
                }
            }
            set
            {
                printDate = DateTime.Parse( value);
                formFinished = true;
            }
        }

        private bool formFinished;
        public bool FormFinished
        {
            get 
            {
                return formFinished;
            }
        }


    }
}
